package com.mall.user.converter;

import com.mall.user.dal.entitys.Member;
import com.mall.user.dal.entitys.UserVerify;
import com.mall.user.dto.UserVerifyResponse;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

/**
 * @author wangdezhao
 * @date 2021/6/18
 * @description
 */
@Mapper(componentModel = "spring")
public interface UserVerifyConverter {

    @Mappings({
            @Mapping(source = "id",target="uid")
    })
    UserVerifyResponse VerifyConverter(Member member);


    UserVerify UserVerifyConverter(Member member);
}
